﻿using System;
using BLL.Services.Users;
using Web.Infrastructure.Models;

namespace Web.Models.Account
{
    public class ShowProfileModel : BaseModel
    {
        public int UserId { get; set; }

        public string Login { get; set; }

        public string Email { get; set; }

        public DateTime RegistrationDate { get; set; }

        public UserStatus Status { get; set; }

        public string Avatar { get; set; }

        public int CurrentUserId { get; set; }

        public static ShowProfileModel operator +(ShowProfileModel model, User user)
        {
            ToEntity(user, model);
            return model;
        }
    }
}